package com.example.demo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.demo.dto.OrderQueryDTO;
import com.example.demo.pojo.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.vo.OrderListVO;
import com.example.demo.vo.OrdersDevVO;
import com.example.demo.vo.ResultVO;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sjy
 * @since 2025-05-25
 */
public interface OrdersService extends IService<Orders> {
    //新增订单
    ResultVO addOrder(Integer boardroomId, Integer customerId, String bookingDate, String startTime, String endTime, Integer numPeople, Integer state, Double totalPrice) throws Exception;
    //稍后支付后支付
    ResultVO modifyOrder(Integer orderId, Integer customerId);
    //订单查询
    IPage<OrdersDevVO> queryOrdersByCustomerId(Integer customerId, Integer page, Integer pageSize);
    //申请退订
    ResultVO<Double> applyCancelOrder(Integer orderId);

    IPage<OrderListVO> queryOrdersByCondition(OrderQueryDTO queryDTO);

    ResultVO approveOrder(Integer orderId);

    ResultVO rejectOrder(Integer orderId);
}
